package nc.impl.ntb;

import nc.bs.sm.accountmanage.INewInstallAdjust;
import nc.tb.pub.services.SchemaBusinessServiceGetter;
import nc.tb.pub.util.NtbLogger;
import nc.tb.schema.FileStoreNameManager;

public class NtbVersionNew_V57_FEP implements INewInstallAdjust {
	
	public NtbVersionNew_V57_FEP() {
		
	}

	/**
	 * copy from NtbVersionNew_FEP
	 */
	public void adjust(String newVersion) throws Exception {
		try{
//			CubeDataModelDMO.executeUpdate("update sm_funcregister set fun_code='2520',disp_code='2520',help_name='TPB20.html' where fun_code='2503'");
//			CubeDataModelDMO.executeUpdate("update sm_funcregister set fun_code='252002',disp_code='252002',help_name='TPB2002.html' where fun_code='250302'");
//			CubeDataModelDMO.executeUpdate("update sm_funcregister set fun_code='252004',disp_code='252004',help_name='TPB2004.html' where fun_code='250304'");
//			CubeDataModelDMO.executeUpdate("update sm_funcregister set fun_code='252006',disp_code='252006',help_name='TPB2006.html' where fun_code='250306'");
//			CubeDataModelDMO.executeUpdate("update sm_funcregister set fun_code='252008',disp_code='252008',help_name='TPB2008.html' where fun_code='250308'");
//			CubeDataModelDMO.executeUpdate("update sm_funcregister set fun_code='252010',disp_code='252010',help_name='TPB2010.html' where fun_code='250310'");
			
			NtbLogger.printE("Begin install FEP schema");
			FileStoreNameManager.setSCHEMA_HOME(FileStoreNameManager.INIT_SCHEMA_HOME);
			SchemaBusinessServiceGetter.getISchemaBusiness().preInstallSchemaForCreateTable("FEP");
			SchemaBusinessServiceGetter.getISchemaBusiness().installSchema("FEP","FEP");
			NtbLogger.printE("End install FEP schema");
		}finally{
			FileStoreNameManager.setSCHEMA_HOME(FileStoreNameManager.APP_SCHEMA_HOME);
		}
	}

}
